-----------------------------------
-- Area: Dynamis - Bastok
--  NM:  Gu'Dha Effigy
-- Mega Boss
-----------------------------------

require("scripts/globals/status");
require("scripts/globals/titles");
require("scripts/globals/dynamis");

-----------------------------------
-- onMobSpawn Action
-----------------------------------

function OnMobSpawn(mob)
end;

-----------------------------------
-- onMobEngaged
-----------------------------------

function onMobEngaged(mob,target)
end;

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)

	if(mob:isInBattlefieldList() == false) then
		mob:addInBattlefieldList();

		killer:addTimeToDynamis(30); -- Add + 30min

		killer:addTitle(DYNAMISBASTOK_INTERLOPER); -- Add title

		local npc = GetNPCByID(17539322); -- Spawn ???
		npc:setPos(mob:getXPos(),mob:getYPos(),mob:getZPos());
		npc:setStatus(0);

		killer:launchDynamisSecondPart(); -- Spawn Dynamis - second part
	end

end;